package com.geez.bbl.db.type;

import java.util.Map;
import java.util.TreeMap;

/**
 * User: biniam.gebremichael
 * Date: Sep 7, 2010
 */
public class BblBook {

    private int id;
    private String language;
    private int book_no;
    private String book_type;
    private String long_name;
    private String short_name;
    private String middle_name;
    private int chapterSize;
    private int verseSize;
    private Map<Integer, BblChapter> chapters = new TreeMap<Integer, BblChapter>();

public  String[] Bible_Books_EN  = new String[] { "Genesis", "Exodus",
			"Leviticus", "Numbers", "Deuteronomy", "Joshua", "Judges", "Ruth",
			"1 Samuel", "2 Samuel", "1 Kings", "2 Kings", "1 Chronicles",
			"2 Chronicles", "Ezra", "Nehemiah", "Esther", "Job", "Psalm",
			"Proverbs", "Ecclesiastes", "Song of Solomon", "Isaiah",
			"Jeremiah", "Lamentations", "Ezekiel", "Daniel", "Hosea", "Joel",
			"Amos", "Obadiah", "Jonah", "Micah", "Nahum", "Habakkuk",
			"Zephaniah", "Haggai", "Zechariah", "Malachi", "Matthew", "Mark",
			"Luke", "John", "Acts", "Romans", "1 Corinthians", "2 Corinthians",
			"Galatians", "Ephesians", "Philippians", "Colossians",
			"1 Thessalonians", "2 Thessalonians", "1 Timothy", "2 Timothy",
			"Titus", "Philemon", "Hebrews", "James", "1 Peter", "2 Peter",
			"1 John", "2 John", "3 John", "Jude", "Revelation" };

    public BblBook(int id, String language, int book_no, String book_type, String long_name, String short_name, String middle_name, int chapterSize, int verseSize) {
        this.id = id;
        this.language = language;
        this.book_no = book_no;
        this.book_type = book_type;
        this.long_name = long_name;
        this.short_name = short_name;
        this.middle_name = middle_name;
        this.chapterSize = chapterSize;
        this.verseSize = verseSize;
    }


    public int getId() {
        return id;
    }

    public String getLanguage() {
        return language;
    }

    public int getBook_no() {
        return book_no;
    }

    public String getBook_type() {
        return book_type;
    }

    public String getEnglishName(){
        return Bible_Books_EN[book_no-1];
    }

    public String getLong_name() {
        return long_name;
    }

    public String getShort_name() {
        return short_name;
    }

    public String getMiddle_name() {
        return middle_name;
    }

    public int getChapterSize() {
        return chapterSize;
    }

    public int getVerseSize() {
        return verseSize;
    }

    public void addChapter(int id, BblChapter c) {
        chapters.put(id, c);
    }

    public Map<Integer, BblChapter> getChapters() {
        return chapters;
    }

    public BblChapter getChapter(int id) {
        return chapters.get(id);
    }
}
